package gui.parser.bean;

import java.util.ArrayList;
import java.util.List;

import gui.Activity;
import gui.Application;

public class Manifest {
	private String package_name;
	private long version_code;
	private String version_name;
	private UsesJdk uses_jdk;
	private Application application;
	private List<Activity> activity_list = new ArrayList<>();

	public String getPackage_name() {
		return package_name;
	}

	public void setPackage_name(String package_name) {
		this.package_name = package_name;
	}

	public long getVersion_code() {
		return version_code;
	}

	public void setVersion_code(long version_code) {
		this.version_code = version_code;
	}

	public String getVersion_name() {
		return version_name;
	}

	public void setVersion_name(String version_name) {
		this.version_name = version_name;
	}

	public UsesJdk getUses_jdk() {
		return uses_jdk;
	}

	public void setUses_jdk(UsesJdk uses_jdk) {
		this.uses_jdk = uses_jdk;
	}

	public Application getApplication() {
		return application;
	}

	public void setApplication(Application application) {
		this.application = application;
	}

	public void addActivity(Activity activity) {
		if (activity == null)
			throw new RuntimeException("activity not find! please check your Menifest.xml");
		activity_list.add(activity);
	}

	public List<Activity> getActivity_list() {
		return activity_list;
	}
}
